

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<script type="text/javascript" src="helpman_topicinit.js"></script>

<title>State Machine Table [Enterprise Architect User Guide]</title>

<meta name="keywords" content="Enterprise Architect, Sparx Systems, UML, State Machine Table,State Machine Table Format,State Machine Table Description,State Machine Table State-Trigger,State Machine Table Trigger-State,State Machine Table State-Next State,Table,Table State Machine">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />

<link type="text/css" href="default.css" rel="stylesheet" />
<style type="text/css">
  A, A:Visited
  {
    color: #00F;
  }

  A:Active, A:Hover
  {
    color: #F00;
  }

  OL
  {
    margin: 5px 0 5px 48px;
  }

  UL
  {
    margin-bottom: 3px;
    margin-top: 0;
  }

  #nsr
  {
    background-color: #D4DFFF;
  }

  #nsr A
  {
    text-decoration: none;
  }

  #mainbody
  {
    padding: 8px;
  }

  .p_BodyText
  {
    padding: 5px 0;
  }
</style>



<style type="text/css" media="screen">
  BODY
  {
    background-color: #FFFFFF;
  }

  #nsr
  {
    padding: 6px 6px 0 6px;
    border-bottom: none;
    vertical-align: top;
    z-index: 2;
    visibility: visible;
    left: 0;
    top: 0;
    position: absolute;
  }

  #mainbody
  {
    left: 0;
    top: 0;
    margin: 0;
    position: absolute;
    padding: 10px;
    overflow: auto;
    height: 100%;
    z-index: 1;
    background-repeat: no-repeat;
    background-position: bottom right;
    background-attachment: fixed;
  }
</style>

<style type="text/css" media="print">
  #nsr
  {
    visibility: none;
  }

  #mainbody
  {
    overflow: visible;
  }
</style>
<script type="text/javascript" language="JavaScript" src="nonscroll.js"></script>

</head>
<body scroll="no">

<div id="page">



        <div id="content">
          <div id="content-inner">
          



  
          <div id="nsr">
            <table border="0" cellspacing="0" cellpadding="4" width="100%">
              <tr valign="top">
                <td align="left">
  


                  <p class="p_Heading1"><span class="f_Heading1">State Machine Table</span></p>



  
                </td>
                <td align="right">
                  <a href="introduction.htm" onmouseover="document.images.main.src='button_main_h.gif'" onmouseout="document.images.main.src='button_main.gif'">
                    <img name="main" src="button_main.gif" border=0 alt="Return to Introduction">
                  </a>&nbsp;
    
                  <a href="pseudo_states.htm" onmouseover="document.images.prev.src='button_prev_h.gif'" onmouseout="document.images.prev.src='button_prev.gif'">
                    <img name=prev src="button_prev.gif" border=0 alt="Previous page" />
                  </a>&nbsp;
    
    
    
                  <a href="st_diagram_options.htm" onmouseover="document.images.next.src='button_next_h.gif'" onmouseout="document.images.next.src='button_next.gif'">
                    <img name=next src="button_next.gif" border=0 alt="Next page" />
                  </a>
    
    
                </td>
              </tr>
            </table>
          </div>
          <div id="mainbody">
  


                <p class="p_BodyText"><span class="f_BodyText">A </span><span class="f_BodyText" style="font-style: italic;">State Machine table</span><span class="f_BodyText"> is one of two variants of a State Machine (the other is the </span><span class="f_BodyText" style="font-style: italic;"><a href="statediagram.htm">State Machine diagram)</a></span><span class="f_BodyText">. It displays the information of the State Machine in table form, and is a method of specifying the discrete behavior of a finite state-transition system; that is, what state the State Machine moves to and the conditions under which the transition takes place.</span></p>
<p class="p_BodyText"><span class="f_BodyText">You can display the state transition as one of two different relationships:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1" style="font-weight: bold;">State - Trigger</span><span class="f_Bulletlist1">: The rows indicate the current states and the columns indicate trigger events (or the other way around if you prefer, in a </span><span class="f_Bulletlist1" style="font-weight: bold;">Trigger - State</span><span class="f_Bulletlist1"> format). The cell at the intersection of a row and column identifies the target state in the transition if the trigger occurs, and the condition (or guard) of the transition.</span></li>
</ul>
<p class="p_TextIndentedL2"><img src="state%20machine%20table%20state-trigger%20format.png" width="540" height="507" border="0" alt="State Machine Table State-Trigger Format"></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1" style="font-weight: bold;">State - Next State:</span><span class="f_Bulletlist1"> The rows and columns both indicate states, and the cell at the intersection of a row and column indicates the event that triggers a transition from the current (row) state to the next (column) state, the condition (or guard) of the event, and the effect of the transition.</span></li>
</ul>
<p class="p_TextIndentedL2"><img src="state%20machine%20table%20state-next%20state%20format.png" width="755" height="561" border="0" alt="State Machine Table State-Next State Format"></p>
<p class="p_SubHeadingL1"><span class="f_SubHeadingL1">Select Format</span></p>
<p class="p_BodyText"><span class="f_BodyText">You can display a State Machine as a diagram or table, and as a table in one of three relationship formats.</span></p>
<p class="p_BodyText"><span class="f_BodyText">To select the display format, follow the steps below:</span></p>
<ol style="text-indent: 0px; margin-left: 48px; list-style-position: outside;">
<li value=1><span class="f_NumberedList">Right-click on the diagram background to display the context menu.</span></li>
<li value=2><span class="f_NumberedList">Select the </span><span class="f_MenuKeyField">Statechart Editor</span><span class="f_NumberedList"> option.</span></li>
<li value=3><span class="f_NumberedList">Select the appropriate display option:</span></li>
</ol>
<ul style="text-indent: 0px; margin-left: 65px; list-style-position: outside;">
<li><span class="f_MenuKeyField">Diagram</span></li>
<li><span class="f_MenuKeyField">Table (State-Next State)</span></li>
<li><span class="f_MenuKeyField">Table (State-Trigger)</span></li>
<li><span class="f_MenuKeyField">Table (Trigger-State)</span></li>
</ul>
<p class="p_BodyText"><span class="f_BodyText">To define the State Machine Table further, see:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1"><a href="st_diagram_options.htm">State Machine Table Options</a></span></li>
<li><span class="f_Bulletlist1"><a href="state_table_diagram_commands_2.htm">State Machine Table Operations</a></span></li>
</ul>




            </div>
          </div>
        </div>



</div>


</body>
</html>
